package main

import (
	_ "go-system/database"
	"go-system/router"
)

func main() {
	router.Router()
}

/*func main() {
	fmt.Println("当前Pid：", syscall.Getpid())
	go func() {
		cmd := exec.Command("./test")
		cmd.Dir = "/home/fast/code/golang/test"
		err := cmd.Start()
		if err != nil {
			return
		}
		fmt.Println(cmd.Dir)
		fmt.Println("守护程序Pid：", cmd.Process.Pid)
		wait, err := cmd.Process.Wait()
		if err != nil {
			fmt.Println("err:", err)
		}
		fmt.Println("exit code:", wait.ExitCode())
	}()
	time.Sleep(time.Hour)
}
*/
